package com.azxc.rapid.plus.user.feign;

import com.azxc.rapid.core.tool.api.R;
import com.azxc.rapid.plus.user.dto.PageFeign;
import com.azxc.rapid.plus.user.entity.UserEntity;
import com.azxc.rapid.plus.user.vo.WestoneBaseMsg;
import com.azxc.rapid.system.user.entity.User;
import com.azxc.rapid.system.user.vo.UserVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author linym
 * @className: IUserPlusClientFallback
 * @description:
 * @date 2022/8/23 15:00
 * @version：1.0
 */
@Component
public class IUserPlusClientFallback implements IUserPlusClient {
	@Override
	public R<UserVO> getUserInfo() {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<List<UserVO>> getUserListInfo(String deptId) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<List<String>> selectJudgeUser(Long userId) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<List<String>> selectFoodDirectorUser(Long userId) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<List<String>> selectProEmerLeader(Long userId) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<List<String>> selectProLeader(Long userId) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<List<User>> userListByIds(String userIds) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<Boolean> saveEnterpriseUser(User user) {
		return R.fail("添加用户信息失败！");
	}

	@Override
	public R<Boolean> updateUserByAccount(String oldAccount, String newAccount, String newName) {
		return R.fail("修改用户信息失败！");
	}

	@Override
	public R<Boolean> resetPasswordByAccount(String account) {
		return R.fail("重置用户信息失败！");
	}

	@Override
	public R<Boolean> sendMsgToWestoneByMobile(WestoneBaseMsg westoneBaseMsg) {
		return R.fail("卫士通推送消息失败！");
	}

	@Override
	public R<String> getRegionCode() {
		return R.fail("获取用户行政区划信息失败！");
	}

	@Override
	public R<List<User>> selectUserByRegionCode(String regionCode) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<User> userByName(String userName, String deptName) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<UserEntity> getEntityByUser(String userId) {
		return R.fail("根据用户id获取企业id失败！");
	}

	@Override
	public R<PageFeign<User>> userPage(Integer current, Integer size) {
		return R.fail("获取用户信息失败！");
	}



	@Override
	public R<List<Long>> getStorageByUserId() {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public R<PageFeign<User>> userTraceInstitute(Integer current, Integer size) {
		return R.fail("获取用户信息失败！");
	}



	@Override
	public R<List<User>> userInfoBatch(String userIds) {
		return R.fail("获取用户信息失败！");
	}

	@Override
	public void updateUserEntId(User data) {

	}

	@Override
	public R<List<User>> getUserByRegionCode(String regionCodes) {
		return R.fail("获取用户信息失败！");
	}
}
